import React, { Component } from 'react';
import './App.scss';

class App extends Component {
    constructor(props){
        super(props)
        this.state = {
            containerStyle:{
                width:'100%',
                height:'100vh',
                display:'flex',
                justifyContent:'center',
                alignItems:'center'
            }
        }
    }
    render() {
        return (
            <div className='container'onClick={this.handleclick.bind(this)} style={this.state.containerStyle}>
                <h1>欢迎</h1>
                <a href="/login">登陆</a>
            </div>
        );
    }
    handleclick(e){
        console.log(e)
    }
}

export default App;
